package com.puyu.xliangyu.security.reading.rest;


import com.puyu.xliangyu.security.common.rest.BaseController;
import com.puyu.xliangyu.security.reading.biz.BooksBiz;
import com.puyu.xliangyu.security.reading.entity.Books;
import com.puyu.xliangyu.security.reading.rpc.service.BooksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *
 */
@RestController
@RequestMapping("reading")
public class BooksController extends BaseController<BooksBiz,Books> {


    @Autowired
    private BooksService booksService;

    @RequestMapping(value = "/getBooksList", method = RequestMethod.GET)
    public @ResponseBody
    List<Books> getBooksList() throws Exception {

        return booksService.selectBooksListAll();
    }

}
